package com.pingan.haofang.searchcloud.index.constants;

/**
 * 索引相关常量
 *
 * @author baojie371
 * @date 17/5/6
 * @since 1.0.0
 */
public final class IndexConstants {

    private IndexConstants() {
        throw new UnsupportedOperationException("Unsupported");
    }

    /**
     * Metadata的默认分片数
     */
    public static final int METADATA_DEFAULT_SHARD_COUNT = 1;

    /**
     * Metadata的默认副本数
     */
    public static final int METADATA_DEFAULT_REPLICATION_FACTOR = 1;

    /**
     * Metadata的默认每个节点最大分片数
     */
    public static final int METADATA_DEFAULT_MAX_SHARDS_PER_NODE = 1;

    /**
     * 路由方式
     */
    public static final String METADATA_DEFAULT_ROUTER_NAME = "compositeId";

    /**
     * Metadata的默认是否自动复制
     */
    public static final boolean METADATA_DEFAULT_AUTO_ADD_REPLICAS = false;

    /**
     * Metadata Field的默认权重（扩大100倍）
     */
    public static final long METADATA_FIELD_DEFAULT_BOOST = 100L;

    /**
     * 默认线程数量 threadNum = 1
     */
    public static final Integer DEFAULT_THREAD_NUM = 1;


}
